<?php
	include "sql.php";
	$lat = $lng = "";
	if ($_SERVER["REQUEST_METHOD"] == "POST"){
	  $lat = $_POST["lat"];
	  $lng = $_POST["lng"];
	}
	if ($_SERVER["REQUEST_METHOD"] == "GET"){
	  $lat = $_GET["lat"];
	  $lng = $_GET["lng"];
	}
	header("Content-type: text/json");
	if($lat!="" && $lng!="") echo getStations($lat,$lng);
?>

